home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / std_unix / archive / text0077.txt < prev    next >
Encoding:
Text File  |  1993-07-06  |  1.0 KB  |  28 lines

  1. Submitted-by: mike@pdx095.intel.com (Mike Haertel)
  2.  
  3. In article <207f29INNge@rodan.UU.NET> lwv26@cas.org (Larry W. Virden) writes:
  4. >I assume that unreadable means AT LEAST files whose permissions are not
  5. >such that would allow me to read.  But what about things like EISDIR?
  6. >This is an error which returns indicating that one is not permitted to
  7. >read the file - correct?  May I have grep -s suppress this message as
  8. >well?
  9.  
  10. Note that the messages usually suppressed by grep -s are the result
  11. of open() attempts, but the EISDIR that Larry is talking about is
  12. what you get when you try to read() and NFS-mounted directory--the
  13. open() succeeds.
  14.  
  15. So the question is exactly what messages should grep -s suppress?
  16. Clearly, it should suppress EACCES and ENOENT returned by open().
  17. Should it suppress EISDIR returned by read()?  After all, an NFS-
  18. mounted directory is certainly "unreadable"...
  19.  
  20. --
  21. Mike Haertel <mike@ichips.intel.com>
  22.  
  23. This is a private posting; it does not indicate opinions or positions
  24. of Intel Corp.
  25.  
  26. Volume-Number: Volume 31, Number 80
  27.  
  28.